#include <iostream>
#include <GLUT/GLUT.h>

void draw() {
	    
	    glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
		    glClear(GL_COLOR_BUFFER_BIT);
			    glColor3f(1.0f, 0.0f, 0.0f);
				    glOrtho(0.0f, 1.0f, 0.0f, 1.0f, -1.0f, 1.0f);
					    glBegin(GL_POLYGON);
						    glVertex3f(0.25f, 0.25f, 0.0f);
							    glVertex3f(0.75f, 0.25f, 0.0f);
								    glVertex3f(0.75f, 0.75f, 0.0f);
									    glVertex3f(0.25f, 0.75f, 0.0f);
										    glEnd();
											    glFlush();
												    
}

int main(int argc, const char* argv[]) {
	    glutInit(&argc, (char**)argv);
		    glutCreateWindow("HelloWorld");
			    glutDisplayFunc(draw);
				    glutMainLoop();
					    return 0;
}
